﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SYSoft.Model.Models.DeviceManage
{
    [SqlSugar.SugarTable("device_energy_config")]
    public class DeviceEnergyConfig
    {
        /// <summary>
        /// ID  自增的主键一定要加IsIdentity特性 防止插入失败
        /// </summary>
        [SugarColumn(IsNullable = false, IsPrimaryKey = true)]
        public int Id { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        public int DeviceId { get; set; }


        /// <summary>
        /// 设备描述
        /// </summary>
        public string DeviceName { get; set; }


        /// <summary>
        /// 数据名称
        /// </summary>
        public string DataName { get; set; }

        /// <summary>
        /// ip地址
        /// </summary>
        public string IpAddress { get; set; }

        /// <summary>
        /// modbus站号
        /// </summary>
        public int StationId { get; set; }

        /// <summary>
        /// 下限数据
        /// </summary>
        public float lowLimitData { get; set; }
        /// <summary>

        /// <summary>
        /// 中限数据
        /// </summary>
        public float midLimitData { get; set; }
        /// <summary>
        /// 上限数据
        /// </summary>
        public float upLimitData { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
